package DisizhouZuoye;

public class Student {
   //创建对应属性
    private  Integer sid;
    private  String stuName;
    private  String stuSex;
    private  Integer stuAge;
    //无参构造
    public Student() {
    }
   //有参构造
    public Student(Integer sid, String stuName, String stuSex, Integer stuAge) {
        this.sid = sid;
        this.stuName = stuName;
        this.stuSex = stuSex;
        this.stuAge = stuAge;
    }

    /**
     * 获取
     * @return sid
     */
    public Integer getSid() {
        return sid;
    }

    /**
     * 设置
     * @param sid
     */
    public void setSid(Integer sid) {
        this.sid = sid;
    }

    /**
     * 获取
     * @return stuName
     */
    public String getStuName() {
        return stuName;
    }

    /**
     * 设置
     * @param stuName
     */
    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    /**
     * 获取
     * @return stuSex
     */
    public String getStuSex() {
        return stuSex;
    }

    /**
     * 设置
     * @param stuSex
     */
    public void setStuSex(String stuSex) {
        this.stuSex = stuSex;
    }

    /**
     * 获取
     * @return stuAge
     */
    public Integer getStuAge() {
        return stuAge;
    }

    /**
     * 设置
     * @param stuAge
     */
    public void setStuAge(Integer stuAge) {
        this.stuAge = stuAge;
    }
//输出全部属性信息的方法
    public String toString() {
        return "学生信息："+"学号:" + sid + ", 姓名:" + stuName + ", 性别:" + stuSex + ", 年龄:" + stuAge + ",";
    }
}
